﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

using System.ServiceModel.Activation;

namespace iLangl.Services
{
	// NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Authentication" in code, svc and config file together.
	[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
	public class Authentication : IAuthentication
	{

		#region IAuthentication Members

		public String Authenticate(String UserName, String Password)
		{
			IAuthenticationService manager = new IAuthenticationService();

			return manager.CreateSession(UserName, Password);
		}

		#endregion
	}
}
